home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
pxscoperatordemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
242 b
|
20 lines
program PXSCOperatorDemo;
type
Point = record
x, y : Real;
end;
operator + (a, b : Point) c : Point;
begin
c.x := a.x + b.x;
c.y := a.y + b.y;
end;
var
a, b, c : Point = (42, 0.5);
begin
c := a + b
end.